package cn.autowired.exam.service;

import cn.autowired.exam.entity.Application;
import com.baomidou.mybatisplus.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cq
 * @since 2018-05-25
 */
public interface ApplicationService extends IService<Application> {
    /**
     * 通过老师Id找到具体的application
     * @param teacherId
     * @return
     */
    List<Application> selectByTeacherId(Integer teacherId);

    /**
     * 通过老师id和申请日期找到application
     * @param teacherId
     * @param date
     * @return
     */
    List<Application> selectByTeacherIdAndDate(Integer teacherId,String date);

    /**
     * 通过学号找到application
     * @param studentNo
     * @return
     */
    List<Application> selectByStudentNo(String studentNo);

    /**
     * 通过学号和data找到application
     * @param studentNo
     * @return
     */
    List<Application> selectByStudentNoAndDate(String studentNo,String date);

    /**
     * 通过学号和老师Id找到application
     * @param studentNo
     * @param teacherId
     * @return
     */
    List<Application> selectByStudentNoAndTeacherId(String studentNo,Integer teacherId);
}
